package consulTest.common;

import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;

@Configuration
//@EnableSwagger2
@Profile({"test","dev"})
public class SwaggerConfig {
//    @Bean
//    public Docket createRestApi() {
//
//
//        return new Docket(DocumentationType.SWAGGER_2)
//            .pathMapping("/")
//            .select()
//            .apis(RequestHandlerSelectors.basePackage("com.yuxiaor.roomsync.server.controller"))
//            .paths(PathSelectors.any())
//            .build().apiInfo(new ApiInfoBuilder()
//                .title("SpringBoot整合Swagger")
//                .description("test api from room synchronize open api")
//                .version("1.0")
//                .build());
//    }
}
